package com.mongodb.service;

import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;
import com.mongodb.pojo.Book;
import java.util.*;

public interface BookService {
	List<Book> findAllBooks();
	Book findBookById(Integer id);
	Book addBook(Book book);
	UpdateResult updateBook(Book book);
	DeleteResult deleteBook(Integer id);
	List<Book> findLike(String name);
}
